package com.haoting.mamba.news.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * 
 * @author tanghao
 * @email 767417609@qq.com
 * @date 2021-03-14 19:47:11
 */
@Data
@TableName("mamba_news")
public class NewsEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(value = "id", type = IdType.ID_WORKER_STR)
	private String  id;
	/**
	 * 
	 */
	private String title;
	/**
	 * 
	 */
	private String cover;
	/**
	 * 
	 */
	private String content;
	/**
	 * 
	 */
	private String teamid;
	/**
	 * 
	 */

	@TableField(fill = FieldFill.INSERT)
	private Integer commentCount;
	/**
	 * 
	 */
	@TableField(fill = FieldFill.INSERT)
	private Integer collectionCount;

	/**
	 * 
	 */
	@TableField(fill = FieldFill.INSERT)
	private Integer supportCount;
	/**
	 * 
	 */
	@TableField(fill = FieldFill.INSERT)
	private Date created;
	/**
	 * 
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date modified;

	@TableField(fill = FieldFill.INSERT)
	private int type;
}
